﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //日结信息
    public class endday
    {
        /// <summary>
        /// 门店号
        /// </summary>
        public string storeid { get; set; }
        /// <summary>
        /// POS机号
        /// </summary>
        public string posno { get; set; }
        /// <summary>
        /// 收银员ID
        /// </summary>
        public string userid { get; set; }
        /// <summary>
        /// 营业日期
        /// </summary>
        public string accdate { get; set; }
    }

    //返回日结信息
    public class endList
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 营业毛额
        /// </summary>
        public decimal grosalamt { get; set; }
        /// <summary>
        /// 折扣金额
        /// </summary>
        public decimal discamt { get; set; }
        /// <summary>
        /// 销售金额
        /// </summary>
        public decimal saleamt { get; set; }
        /// <summary>
        /// 交易笔数
        /// </summary>
        public int flowcount { get; set; }
        /// <summary>
        /// 借零金额
        /// </summary>
        public decimal paidinamt { get; set; }
        /// <summary>
        /// 投库金额
        /// </summary>
        public decimal paidoutamt { get; set; }
        /// <summary>
        /// 开班时间
        /// </summary>
        public string begdate { get; set; }
        /// <summary>
        /// 交班时间
        /// </summary>
        public string enddate { get; set; }

        public List<endPay> endPayList { get; set; }
        

        public class endPay
        {   
            /// <summary>
            /// 交班时间
            /// </summary>
            public int lineno { get; set; }
            /// <summary>
            /// 支付别
            /// </summary>
            public string payway { get; set; }
            /// <summary>
            /// 支付金额
            /// </summary>
            public decimal payamt { get; set; }

        }
    }

}
